<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/common.jsp"%>
<%@ include file="/common/taglibs.jsp"%>
<html>
  <head>
<%@ include file="/common/meta.jsp"%>      
    <title>系统信息</title>
	<link href="<c:url value='/styles/form.css'/>" type="text/css" rel="stylesheet">
	<script language="javascript" type="text/javascript" 
			src="<%=contextPath %>/scripts/common-validator.js"></script>
	<script type="text/javascript">
			function validateForm(form){
			return true;	
		}
		function email(){
			var mail = $("systeminfoPo.smtpAuthFlag").value ;
			if(mail == 0){
				$("user").style.display = "none";
				$("pass").style.display = "none";
				
			}
			else{
				$("user").style.display = "";
				$("pass").style.display = "";
			}
		}
		window.onload = function() {
			email();
		}
	</script>	
  </head>
	<body bgcolor="#F2FEF4">
		<div align="center">
		<div id="detailheader">
			<img src="<%=request.getContextPath()%>/images/main/main_ban01Dot.png" />
			<div>系统信息</div>
		</div>
		<br/><br/>   
		<html:form action="/systeminfo.do?method=update" method="post" onsubmit="return validateForm(this);">			
			<div class="formTable" style="width:90%;">
				<div class="formTitle">
					<div class="formTitleL"></div>
					<div class="formTitleM">系统信息</div>
					<div class="formTitleR"></div>
				</div>
				<div class="formContent">
							<table width="90%">
								<tr>
									<td align="left">系统编号:</td>
									<td align="left" nowrap="nowrap">
										<html:text property="systeminfoPo.systemCode" />
									</td>
								</tr>
								<tr>
									<td align="left">系统名称:</td>
									<td align="left" nowrap="nowrap">
										<html:text property="systeminfoPo.systemName" />
									</td>
								</tr>
								<tr>
									<td align="left">系统版本:</td>
									<td align="left" nowrap="nowrap">
										<html:text property="systeminfoPo.systemVersion" />
									</td>
								</tr>
								<tr>
									<td align="left">版权信息:</td>
									<td align="left" nowrap="nowrap">
										<html:text property="systeminfoPo.copyright" />
									</td>
								</tr>
								<tr>
									<td align="left">公司名称:</td>
									<td align="left" nowrap="nowrap">
										<html:text property="systeminfoPo.companyName" />
									</td>
								</tr>
								<tr>
									<td align="left">邮件服务器地址:</td>
									<td align="left" nowrap="nowrap">
										<html:text property="systeminfoPo.companyName" />
									</td>
								</tr>
								<tr>
									<td align="left">是否需要验证:</td>
									<td align="left" nowrap="nowrap">
										<html:select property="systeminfoPo.smtpAuthFlag" onchange="email()">
											<html:option value="1">是</html:option>
											<html:option value="0">否</html:option>
										</html:select>
									</td>
								</tr>
								<tr id="user">
									<td align="left">系统邮件用户:</td>
									<td align="left" nowrap="nowrap">
										<html:text property="systeminfoPo.smtpUser" />
									</td>
								</tr>
								<tr id="pass">
									<td align="left">邮件用户密码:</td>
									<td align="left" nowrap="nowrap">
										<html:password property="systeminfoPo.smtpPass" />
									</td>
								</tr>
								<tr id="pass">
									<td align="left">是否SSL认证:</td>
									<td align="left" nowrap="nowrap">
										<html:select property="systeminfoPo.smtpSslFlag" onchange="email()">
											<html:option value="1">是</html:option>
											<html:option value="0">否</html:option>
										</html:select>
									</td>
								</tr>
								
								<tr>
									<td align="left">系统邮件地址:</td>
									<td align="left" nowrap="nowrap">
										<html:text property="systeminfoPo.systemEmail" />
									</td>
								</tr>
								<tr>
									<td align="left">系统邮件签名:</td>
									<td align="left" nowrap="nowrap">
										<html:text property="systeminfoPo.systemEmailSign" />
									</td>
								</tr>
								<tr>
									<td align="left">系统最后更新时间:</td>
									<td align="left" nowrap="nowrap">
										<html:text property="systeminfoPo.lastUpdateDatetime" />
									</td>
								</tr>
								<tr>
									<td align="center" colspan="2">
										<html:submit styleClass="btn_Xp_Bg0" value="修 改"/>&nbsp;&nbsp;&nbsp;
										<html:reset styleClass="btn_Xp_Bg0" value="重 置"/>
									</td>
								</tr>
							</table>
				</div>
			</div>
		</html:form>
		</div>
	</body>
</html>
